package com.wxl.common.serialport

import android.content.Context
import androidx.work.Worker
import androidx.work.WorkerParameters

class QueryPortJobWork (context: Context, workerParams: WorkerParameters) :
    Worker(context, workerParams) {

    override fun doWork(): Result {
        BlastSerial.instance()!!.sendData(SerialCmd.CODE_SEARCH)
        SerialPortManager.startIntervalQueryPort(QueryPortWork::class.java)
        return Result.retry()
    }
}